#!/bin/bash
set -xv
mkdir -p `pwd`/log
log="`pwd`/log/svn_mirror_sync.log"
echo "`date`: start" >> $log 
cat svn.repo | while read line
do 
	repo=$line
	#svnadmin create `pwd`/$repo
	#cp ./$repo/hooks/pre-revprop-change.tmpl ./$repo/hooks/pre-revprop-change
	#sed -i 's/exit 1/exit 0/' ./$repo/hooks/pre-revprop-change	
	#svnsync init file://`pwd`/$repo https://svn.hengsion.xyz:59086/svn/$repo
	#svnsync init file://`pwd`/$repo https://svn.hengsion.xyz:59086/svn/$repo
	echo "`date`: start svnsync $repo " >> $log
	svnsync sync file://`pwd`/$repo
	echo "`date`: finish svnsync $repo " >> $log
done
echo "`date`: finish" >> $log
